﻿using System;
using System.Windows.Forms;

namespace UIapp.Plantillas
{
    public partial class frmDialogPlantilla : Form
    {
        public frmDialogPlantilla()
        {
            InitializeComponent();
        }

        private void frmDialogPlantilla_KeyDown(object sender, KeyEventArgs e)
    {
            switch (e.KeyData)
            {
                case Keys.F2:
                    this.btnAceptar.PerformClick();
                    break;
                case Keys.F12:
                    this.btnCancelar.PerformClick();
                    break;
            }
        }

        private void btnCancelar_Click(object sender, EventArgs e)
        {
            this.DialogResult = System.Windows.Forms.DialogResult.Cancel;
            this.Close();
        }
    }
}
